package za.co.chris.traintimes.beans;

import java.util.ArrayList;
import java.util.List;

public class TimeBean {

	private final String line;
	private final String fromStation;
	private final String toStation;
	private final List<TimeElement> timeElements;

	public TimeBean(String line, String fromStation, String toStation) {
		this.line = line;
		this.fromStation = fromStation;
		this.toStation = toStation;
		timeElements = new ArrayList<TimeElement>();
	}

	public String getLine() {
		return line;
	}

	public String getFromStation() {
		return fromStation;
	}

	public String getToStation() {
		return toStation;
	}

	public void addTimeElement(TimeElement element) {
		timeElements.add(element);
	}

	public List<TimeElement> getTimeElements() {
		return timeElements;
	}

}
